package com.lkl.client;

import com.lkl.bean.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author lkl
 * @Description
 * @Date 2022/3/28
 */
@FeignClient(name = "tg-train",path = "train")
public interface TicketClients {

    @RequestMapping("/findAll")
    public BaseResp findAll(@RequestBody TicketRep tickerRep);
    @RequestMapping("/update")
    //修改  id：支付成功后的订单id
    public BaseResp update(@RequestBody UpdateRes updataRes);
    //id查询
    @RequestMapping("/findById")
    public BaseResp findById(@RequestParam("id") Integer id);

}